<template>
	<view>
		<view class="smart-container">1.容器</view>
		<view class="smart-panel-h" @click="get('view')"><text>view视图</text></view>
		<view class="smart-container">2.基础内容</view>
		<view class="smart-panel-h" @click="get('test')"><text>文本编辑</text></view>
		<view class="smart-panel-h" @click="get('icon')"><text>icon图标</text></view>
		<view class="smart-container">3.表单组件</view>
		<view class="smart-panel-h" @click="get('button')">button组件</view>
		<view class="smart-panel-h" @click="get('check')">checkbox多选框</view>
		<view class="smart-panel-h"  @click="get('label')">label标签</view>
		<view class="smart-panel-h"  @click="get('tex')">texarea多行文本输入框</view>
		<view class="smart-panel-h"  @click="get('form')">form表单</view>
		<view class="smart-container">4.表单</view>
		<view class="smart-panel-h"  @click="get('tex')">navigator</view>

		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			get(e){
				if(typeof e ==='string'){
					uni.navigateTo({
						url:'/pages/tarBar/compont/' + e + '/' + e
					});
					
					
				}else{
					uni.navigateTo({
						url:e.url
					});
					
					
				}
			}
		}
	}
</script>

<style>

</style>
